<Window x:Class="MimeCloud.AssetManagement.DigitalLibrary.Dialogs.MIMETypeEditor"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MIMETypeEditor" Height="276" Width="304">
    <Grid>
        <Border BorderBrush="LightGray" BorderThickness="1" CornerRadius="10" Padding="10">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100" />
                    <ColumnDefinition Width="300*" />
                    <ColumnDefinition Width="7*" />
                    <ColumnDefinition Width="143*" />
                </Grid.ColumnDefinitions>

                <TextBlock Grid.ColumnSpan="3" Text="MIME Type Editor" />
                <Label Grid.Column="0" Grid.Row="1" Content="Name" />
                <Label Grid.Column="0" Grid.Row="2" Content="Description" />
                <Label Grid.Column="0" Grid.Row="3" Content=" Mime Type" />
                <Label Grid.Column="0" Grid.Row="4" Content="Enabled" />


                <TextBox Grid.Column="1" Grid.Row="1" Text="{Binding Path=Name, Mode=TwoWay, UpdateSourceTrigger=LostFocus, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" VerticalAlignment="Top" Grid.ColumnSpan="2" Height="21.96" Margin="0,0,3.713,0" />
                <TextBox Grid.Column="1" Grid.Row="2" Text="{Binding Path=Description, Mode=TwoWay, UpdateSourceTrigger=LostFocus, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" VerticalAlignment="Top" Grid.ColumnSpan="2" Height="21.96" Margin="0,0,3.713,0" />
                <TextBox Grid.Column="1" Grid.Row="3" Text="{Binding Path=_MimeType, Mode=TwoWay, UpdateSourceTrigger=LostFocus, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" VerticalAlignment="Top" Grid.ColumnSpan="2" Height="21.96" Margin="0,0,3.713,0" />
                <CheckBox Grid.Column="1" Grid.Row="4" Content="" IsChecked="{Binding Path=Enabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" Grid.ColumnSpan="2" />

                <Grid Grid.Row="5" Grid.ColumnSpan="3" Grid.IsSharedSizeScope="True" Margin="10.893,0,0,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition SharedSizeGroup="Buttons" />
                        <ColumnDefinition SharedSizeGroup="Buttons" />
                    </Grid.ColumnDefinitions>
                    <Button Content="OK" Padding="3.5,0,3.5,0" Margin="3" Click="Button_Click" />
                    <Button Content="Cancel" Padding="3.5,0,3.5,0" Grid.Column="1" Margin="3.5" Click="Button_Click_1" />
                </Grid>

            </Grid>
        </Border>

    </Grid>
</Window>
